class Animal {
    constructor(name,age){
        this.name=name;
        this.age = age;
    }

    eat(foodName){
        console.log(`${this.name} 吃 ${foodName}`);
    }
}

class Cat extends Animal{
    constructor (n,a,color){
        super(n,a);
        this.color = color;
    }

    shout(){
        console.log(`${this.name}一直在叫个不停`);
    }
}

export default Animal;
export {Cat}